function []=plotSelfCalibResults(allsols,  scrs, bestslns,WEIGHTS,numparams)

numtries=size( scrs,1);
[focs, xcentrs, ycentrs, ars, skews, ~,~,~,~,~]=convertOutSelfCalibFormat(allsols,bestslns);
scorearray=scrs;
totalresults= { focs xcentrs ycentrs ars skews};
labels={'focal length' ,'x center', 'y center', 'aspect ratio', 'skew'};

for i=1:numparams
    
    figure
    hist(totalresults{i},numtries/2);
    title([labels{i}]);
    
    figure;
    scatter(totalresults{i}, scorearray);
    title([labels{i} ' versus energy']);
    xlabel(labels{i});
    ylabel('value of the energy function ');
    
end

if(std(WEIGHTS)>eps)
    figure
    hist(WEIGHTS);
    title('histogram of the weights');
end






end